package com.ssy.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssy.system.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ssy
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {

    List<Integer> selectRoleIdsByUserId(Integer userId);

    void deleteRolePermissionByRid(Integer roleId);

    void saveRolePermission(@Param("rid") Integer roleId,@Param("pid") Integer pid);
}
